#include "stdafx.h"
#include "SystemConfig.h"
#include "math/stringConverter.h"

  SystemConfig gSystemConfig;
SystemConfig::SystemConfig(void)
{
	init();
}

SystemConfig::~SystemConfig(void)
{
}

void SystemConfig::init()
{
	char				ExePath[MAX_PATH ]; 
	GetModuleFileNameA(NULL,ExePath,MAX_PATH); 
	String outBasename  ;
	String outPath ;
	StringConverter::splitFilename(ExePath,outBasename,outPath);
	m_path = outPath.c_str();

}

SystemConfig * SystemConfig::getInstance()
{
	return &gSystemConfig;
}